<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="button" value="百度" onclick="func()">
</body>
<script>
    //与绑定事件相结合实现页面跳转
    function func(){
        location.href="https://www.baidu.com/";
    }
</script>
</html>